<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>orders</title>

<style type="text/css">
.bodiv{
margin-left:400px;
width:500px;
}
	td{
	border:black,2px;
	}
	.user{
	float:right 
	}
	
	table,table tr th, table tr td { border:1px solid #0094ff; }
        table { width: 400px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;} 
        form{ float:right}  
	
</style>

</head>
<body>
<div class="bodiv">
		<h1>order</h1>
				<div class="user">user:${user.uname}</div>
	<table>
<% 
	//Map<Book,Integer> map = request.getAttribute("cart");
%>
<h6>${info }</h6>
<c:forEach items="${cart}" var="ca" >
	<tr>
	<td><c:out value="${ca.key.bname }"/></td>
	<td><img alt="" src="${ca.key.photo }" width="80" height="120"></td>
	<td>${ca.value }</td>
	</tr>
	

</c:forEach>
</table>
<a href="list">back</a>
<form action="commitOrder" method="post"> <button> buy</button></form>
</div>
</body>
</html>